package com.sfang.common.base.collection;

import java.io.Serializable;

/**
 * Created by psalmody on 2016/10/8.
 */
public class TrinityTuple<A, B, C> implements Serializable {

    public TrinityTuple() {

    }

    public TrinityTuple(A a, B b, C c) {
        this.first = a;
        this.second = b;
        this.third = c;
    }

    private A first;
    private B second;
    private C third;

    public A getFirst() {
        return first;
    }

    public void setFirst(A first) {
        this.first = first;
    }

    public B getSecond() {
        return second;
    }

    public void setSecond(B second) {
        this.second = second;
    }

    public C getThird() {
        return third;
    }

    public void setThird(C third) {
        this.third = third;
    }

    public static <A, B, C> TrinityTuple<A, B, C> create(A a, B b,C c) {
        TrinityTuple<A, B, C> trinityTuple = new
                TrinityTuple<A, B, C>(a, b, c);
        return trinityTuple;

    }
}
